You can store JavaScript functions for reuse. In the main window, click
Function to open the function object list.
Function Designer is the basic Navicat tool for working with functions. You can enter the function definition in the Definition tab. To customize the view of the editor and find out more features for script editing, see Query Editor for details.
To execute the function, click
on the toolbar. If the script is correct, a dialog will pop up. Enter input parameters if necessary and click OK. If the function is supposed to return data, the Result tab opens with the data returned. If an error occurs while executing the function, execution stops, the appropriate error message is displayed.